import 'package:flutter/material.dart';

class LiTimer extends StatefulWidget {
  const LiTimer({super.key});

  @override
  State<LiTimer> createState() => _LiTimerState();
}

class _LiTimerState extends State<LiTimer> {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(16),
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.circular(8),
        boxShadow: [
          BoxShadow(
            color: Colors.grey.withOpacity(0.2),
            spreadRadius: 1,
            blurRadius: 5,
            offset: Offset(0, 3), // changes position of shadow
          ),
        ],
      ),
      child: Column(
        children: [
          Text('计时器', style: TextStyle(fontSize: 20)),
          SizedBox(height: 16),
          Text('00:00', style: TextStyle(fontSize: 48)),
          SizedBox(height: 16),
          ElevatedButton(
            onPressed: () {},
            child: Text('开始'),
          ),
        ],
      ),
    );
  }
}
